package com.taotao.st3.base.redis;

import java.util.Random;

/**
 * <p>
 * 集中管理redis的key
 * </p>
 *
 * @author fanbeibei
 * @version V1.0
 * @since 2019/9/8 10:45
 */
public class RedisKeys {
    public static final String COMMMON_PRIFFIX = "short-link:";

    protected RedisKeys() {
    }



    /**
     * 防止雪崩
     *
     * @param expireTime
     * @return
     */
    public static long getExpireTime(long expireTime) {
        return expireTime + new Random().nextInt(60 * 2);
    }
}
